//
//  HAnswerTableViewCell.m
//  NursingManages
//
//  Created by Zhen Huang on 17/9/15.
//  Copyright © 2017年 huangzhen. All rights reserved.
//

#import "HAnswerTableViewCell.h"

@implementation HAnswerTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.selectedBtn];
        [self.contentView addSubview:self.selectlable];
    }
    return self;
}

//懒加载
- (UIButton *)selectedBtn
{
    if (!_selectedBtn) {
        _selectedBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        _selectedBtn.frame = CGRectMake(10, 10, 25, 25);

    }
    return _selectedBtn;
}

- (UILabel *)selectlable
{
    if (!_selectlable) {
        _selectlable = [[UILabel alloc]initWithFrame:CGRectMake(self.selectedBtn.right + 10, 5, ScreenWidth - self.selectedBtn.right - 20, 20)];
        _selectlable.textColor = [UIColor colorWithRed:0.40 green:0.40 blue:0.40 alpha:1.00];
        
    }
    return _selectlable;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
